#define _CRT_SECURE_NO_WARNINGS
#include"Stack.h"
void test()
{
	St st;
	stack_init(&st);

	stack_push(&st, 1);
	stack_push(&st, 2);
	stack_push(&st, 3);
	stack_push(&st, 4);

	while (st.top != 0)
	{
		printf("%d ", stack_pop(&st));
	}
	stack_push(&st, 3);
	stack_push(&st, 4);

	while (st.top != 0)
	{
		printf("%d ", stack_pop(&st));
	}
}

int main()
{

	test();

	return 0;
}
